#ifndef HTTPUTILS_H
#define HTTPUTILS_H

#include <QList>
#include <QObject>
#include "IQtHttpRespEventHandler.h"

class HttpUtils{
public:
    static void requestUrl(int eventId,QUrl url,IQtHttpRespEventHandler* handler,QObject* receiver);
    static bool checkConnectionState();

    static void addHttpRespEventHandler(IQtHttpRespEventHandler* handler);
    static void removeHttpRespEventHandler(IQtHttpRespEventHandler* handler);
    static void removeAllHttpRespEventHandlers();
private:
    HttpUtils();
    static QList<IQtHttpRespEventHandler*> list;
};

#endif // HTTPUTILS_H
